/**
 * @file PageLib.hpp
 * @author your name (you@domain.com)
 * @brief
 * @version 0.1
 * @date 2022-04-05
 *
 * @copyright Copyright (c) 2022
 *
 */

#pragma once

#include <string>
#include <vector>

namespace wd
{

class Configuration;
class DirScanner;

class PageLib
{
  public:
    PageLib(Configuration &conf,
            DirScanner &dirScanner);

    void create(); // 创建网页库 解析xml
    void store();  // 存储网页库和网页偏移库 pagelib.dat offsetlib.dat

  private:
    Configuration &_conf;
    DirScanner &_dirScanner;
    std::vector<std::string> _vecPages;
};

} // end of namespace wd
